package com.ruoyi.procurementmanagement.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 平台管理员对象 es_admin_user
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public class EsAdminUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台管理员id */
    private Integer id;

    /** 管理员名称 */
    @Excel(name = "管理员名称")
    private String username;

    /** 管理员密码 */
    @Excel(name = "管理员密码")
    private String password;

    /** 部门 */
    @Excel(name = "部门")
    private String department;

    /** 权限id */
    @Excel(name = "权限id")
    private Integer roleId;

    /** 创建日期 */
    @Excel(name = "创建日期")
    private Long dateLine;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long userState;

    /** 管理员真实姓名 */
    @Excel(name = "管理员真实姓名")
    private String realName;

    /** 头像 */
    @Excel(name = "头像")
    private String face;

    /** 是否为超级管理员 */
    @Excel(name = "是否为超级管理员")
    private Long founder;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String sn;

    /** 所属部门id */
    @Excel(name = "所属部门id")
    private Integer deptId;

    /** 所属岗位id */
    @Excel(name = "所属岗位id")
    private Integer postId;

    /** 顺序 */
    @Excel(name = "顺序")
    private Long sort;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setDepartment(String department)
    {
        this.department = department;
    }

    public String getDepartment()
    {
        return department;
    }
    public void setRoleId(Integer roleId)
    {
        this.roleId = roleId;
    }

    public Integer getRoleId()
    {
        return roleId;
    }
    public void setDateLine(Long dateLine)
    {
        this.dateLine = dateLine;
    }

    public Long getDateLine()
    {
        return dateLine;
    }
    public void setUserState(Long userState)
    {
        this.userState = userState;
    }

    public Long getUserState()
    {
        return userState;
    }
    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getRealName()
    {
        return realName;
    }
    public void setFace(String face)
    {
        this.face = face;
    }

    public String getFace()
    {
        return face;
    }
    public void setFounder(Long founder)
    {
        this.founder = founder;
    }

    public Long getFounder()
    {
        return founder;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setDeptId(Integer deptId)
    {
        this.deptId = deptId;
    }

    public Integer getDeptId()
    {
        return deptId;
    }
    public void setPostId(Integer postId)
    {
        this.postId = postId;
    }

    public Integer getPostId()
    {
        return postId;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("department", getDepartment())
            .append("roleId", getRoleId())
            .append("dateLine", getDateLine())
            .append("remark", getRemark())
            .append("userState", getUserState())
            .append("realName", getRealName())
            .append("face", getFace())
            .append("founder", getFounder())
            .append("sn", getSn())
            .append("deptId", getDeptId())
            .append("postId", getPostId())
            .append("sort", getSort())
            .append("nickname", getNickname())
            .toString();
    }
}
